home *** CD-ROM | disk | FTP | other *** search
-
- shader()
- {// >=gf3
- cull("none")
- sortweight("translucent14")
- stream("color", 0)
- Shaderquality(3)
- pass()
- {
- PixelShader("FX_BLEND.psh")
- tmu()
- {
- texture()
- {
- Mapchannel(0)
- image(TEXTURE1)
- addressfunc("clamp", "clamp", "clamp")
- }
- }
-
- tmu()
- {
- TexGen("planar")
- TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
- texture()
- {
- Image(%colortexturesmall)
- addressfunc("clamp", "clamp", "clamp")
- }
- }
-
- tmu()
- {
- TexGen("world_position")
- TexMtxDirPosScale(0.866025, 0.5, 0.0, 0, 0, 0, 0.000015, 0.00002, 0.000015)
- TexMod("translate", "lin", 0, 0.02, 0, "lin", 0, 0.001, 0)
- texture()
- {
- Image(%cloudstexture)
- }
- }
- blendfunc("src_alpha", "inv_src_alpha")
- depthfunc("lequal", 0)
-
- depthbias(%zbias, %zsbias)
- }
- }
-
- shader()
- {// >=gf3
- cull("none")
- sortweight("translucent14")
- stream("color", 0)
-
- Shaderquality(1)
- pass()
- {
- PixelShader("FX_BLEND_LOW.psh")
- tmu()
- {
- texture()
- {
- Mapchannel(0)
- image(TEXTURE1)
- addressfunc("clamp", "clamp", "clamp")
- }
- }
- tmu()
- {
- TexGen("planar")
- TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
- texture()
- {
- Image(%colortexturesmall)
- addressfunc("clamp", "clamp", "clamp")
- }
- colorop("arg2", "texture", "current", "current")
- alphaop("mul", "texture", "current", "current")
- }
- blendfunc("src_alpha", "inv_src_alpha")
- depthfunc("lequal", 0)
- depthbias(%zbias, %zsbias)
- }
- }
-
-
- shader()
- {//gf2
- cull("none")
- sortweight("translucent14")
-
- stream("color", 0)
-
- pass()
- {
- tmu()
- {
- texture()
- {
- image(TEXTURE1)
- addressfunc("clamp", "clamp", "clamp")
- }
-
- colorop("mul", "texture", "diffuse", "current")
- alphaop("mul", "texture", "diffuse", "current")
- }
-
- tmu()
- {
- colorop("mul", "current", "tfactor", "current")
- alphaop("arg1", "current", "current", "current")
- }
-
- Tfactor(%daycolor_r, %daycolor_g, %daycolor_b, 0)
-
- blendfunc("src_alpha", "inv_src_alpha")
- depthfunc("lequal", 0)
-
- depthbias(%zbias, %zsbias)
- }
- }
-
-